package com.nus.iss.ad.model;

import java.util.HashMap;
import java.util.List;

import org.w3c.dom.ls.LSInput;

public class DeptRequest extends HashMap<String, String>{

	private int deptRequestId;
	private String deptId;
	private String status;
	private String dateConfirmed;
	private String deliveryDate;
	private Department department;
	private String departmentName;
	private String contactPerson;
	private List<DeptRequestDetails> deptRequestDetails;
	
	
	public DeptRequest() {
		// TODO Auto-generated constructor stub
		
		put("deptRequestId", deptRequestId+"");
		put("deptId", deptId);
		put("status", status);
		put("dateConfirmed", dateConfirmed);
		put("deliveryDate", deliveryDate);
		
		
	}


	public int getDeptRequestId() {
		return deptRequestId;
	}


	public void setDeptRequestId(int deptRequestId) {
		this.deptRequestId = deptRequestId;
	}


	public String getDeptId() {
		return deptId;
	}


	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getDateConfirmed() {
		return dateConfirmed;
	}


	public void setDateConfirmed(String dateConfirmed) {
		this.dateConfirmed = dateConfirmed;
	}


	public String getDeliveryDate() {
		return deliveryDate;
	}


	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}


	public Department getDepartment() {
		return department;
	}


	public void setDepartment(Department department) {
		this.department = department;
		put("department", department.getName());
	}


	public List<DeptRequestDetails> getDeptRequestDetails() {
		return deptRequestDetails;
	}


	public void setDeptRequestDetails(List<DeptRequestDetails> deptRequestDetails) {
		this.deptRequestDetails = deptRequestDetails;
		put("deptRequestDetailsCount", deptRequestDetails.size()+"");
	}


	public String getDepartmentName() {
		return departmentName;
	}


	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
		put("departmentName", departmentName);
	}


	public String getContactPerson() {
		return contactPerson;
	}


	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
		put("contactPerson", contactPerson);
	}
	
	
	
}
